import request from '@/utils/request'

// 查询制粒车间样品光谱列表
export function listPel_spectrum(query) {
  return request({
    url: '/spectrum/pel_spectrum/list',
    method: 'get',
    params: query
  })
}

// 查询制粒车间样品光谱详细
export function getPel_spectrum(sampleSpectrumPelId) {
  return request({
    url: '/spectrum/pel_spectrum/' + sampleSpectrumPelId,
    method: 'get'
  })
}

// 新增制粒车间样品光谱
export function addPel_spectrum(data) {
  return request({
    url: '/spectrum/pel_spectrum',
    method: 'post',
    data: data
  })
}

// 修改制粒车间样品光谱
export function updatePel_spectrum(data) {
  return request({
    url: '/spectrum/pel_spectrum',
    method: 'put',
    data: data
  })
}

// 删除制粒车间样品光谱
export function delPel_spectrum(sampleSpectrumPelId) {
  return request({
    url: '/spectrum/pel_spectrum/' + sampleSpectrumPelId,
    method: 'delete'
  })
}
